export default {
  state: {
    operation: null,
    currentNode: null
  },
  mutations: {
    setOperation(state, type) {
      state.operation = type
    },
    setCurrentNode(state, node) {
      state.currentNoe = node
    }
  },
  getters: {},
  actions: {
    // 提交类型
    handleOperation({ commit }, type) {
       commit('setOperation', type)
    },
    // 提交点击节点
    handleNode({ commit }, node) {
      commit('setCurrentNode', node)
    }
  }
}
